package org.jet.emall.rbac.transfer;

import org.jet.emall.rbac.dto.AdminLoginLogDTO;
import org.jet.emall.rbac.dto.AdminOpLogDTO;
import org.jet.emall.rbac.vo.AdminLoginLogVO;
import org.jet.emall.rbac.vo.AdminOperationLogVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author xiaozai
 * @version 1.0
 * @date 2020-04-20 15:47
 */
@Mapper
public interface AdminLogVoTransfer {
    AdminLogVoTransfer INSTANCE = Mappers.getMapper(AdminLogVoTransfer.class);

    /**
     *   将登录日志DTO列表转VO列表
     * @param list
     * @return
     */
    List<AdminLoginLogVO> toLoginLogVoList(List<AdminLoginLogDTO> list);

    /**
     *  将操作日志DTO列表转VO列表
     * @param list
     * @return
     */
    List<AdminOperationLogVO> toOperationLogVoList(List<AdminOpLogDTO> list);
}
